package com.net.shop.car.manager.api.volley.request;

import org.json.JSONException;
import org.json.JSONObject;

import com.net.shop.car.manager.api.volley.Request;
import com.net.shop.car.manager.utils.Constants;
import com.net.shop.car.manager.utils.LogUtils;

/**
 * 请使用Response作相应即可
 * @author Deve 
 *
 */
public class DeleteCard extends Request {

	private String cardNum;
	private String memberId;
	private String holderName;
	/**
	 */
	public DeleteCard(String cardNum,String memberId,String holderName) {
		super(Constants.BIND_CARD);
		this.cardNum = cardNum;
		this.memberId = memberId;
		this.holderName = holderName;
	}

	@Override
	public void extensionJSON(JSONObject jsonObject) {
		try {
			jsonObject.put("card_number", cardNum);
			jsonObject.put("member_id", memberId);
			jsonObject.put("holder_name", holderName);
		} catch (JSONException e) {
			LogUtils.e(e.getMessage());
		}
	}

}
